package com.carkeeper.service;

import com.carkeeper.dto.BillDTO;
import com.carkeeper.service.serviceFallback.BillFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(value = "carkeeper-order", fallback = BillFallbackFactory.class)
public interface BillFeign {
    @GetMapping("/bill/list")
    List<BillDTO> findAll(@RequestParam(name = "storeId", required = false) Long storeId,
                          @RequestParam(name = "payState", required = false) Integer payState);
}
